package com.nba.service.impl;

import java.util.Date;
import java.util.List;

import com.nba.bean.New;
import com.nba.dao.NewDao;
import com.nba.dao.impl.NewDaoImpl;
import com.nba.service.NewService;

public class NewServiceImpl implements NewService {
	
	NewDao newdao = new NewDaoImpl();
	@Override
	public List<New> selectNewAll() {
		return newdao.selectNewAll();
	}

	
	@Override
	public int addNew(String newTheme, String newContent, String newUrl, Date newTime, int typeId) {
		return newdao.insertNew(newTheme, newContent, newUrl, newTime, typeId);
	}

}
